package cn.nawang.ebeim.client.bean;

public abstract class BackupTask {
  
  private DataSource dataSource;
  
  private int retries;

  public DataSource getDataSource() {
    return dataSource;
  }

  public void setDataSource(DataSource dataSource) {
    this.dataSource = dataSource;
  }

  public int getRetries() {
    return retries;
  }

  public void setRetries(int retries) {
    this.retries = retries;
  }

  @Override
  public String toString() {
    return "BackupTask [dataSource=" + dataSource + "]";
  }

  abstract public void execute();

  abstract public void upload();

}
